<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet"
	type="text/css" />
<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet"
	type="text/css" />
<link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.css"
	rel="stylesheet" type="text/css" />
<link href="lib/region/css/city-picker.css" rel="stylesheet"
	type="text/css" />
<link href="lib/region/css/main.css" rel="stylesheet" type="text/css" />

<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<style>
.file-bottom {
	position: relative;
}

.file-form {
	position: absolute;
	top: 0;
}
</style>
<title>新增商品</title>
</head>
<body>
	<div class="pd-20">
		<form action="<%=path%>/backstage/goods-add" method="post"
			class="form form-horizontal" id="form-goods-add">


			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">优惠券分类：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<span class="select-box"> <select name="cateId"
						class="select" datatype="*" nullmsg="不能为空">
							<option value="">----</option>
					</select>
					</span>
				</div>
			</div>


			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">公司名称：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<input type="text" class="input-text" value=""
						placeholder="" id="vedio" name="vedio" datatype="*" nullmsg="不能为空">
				</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">公司位置：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<input id="city-picker3" class="form-control" readonly
						name="regioninfo" type="text" value="//" data-toggle="city-picker">
				</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">详细地址：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<input type="text" class="input-text" value=""
						placeholder="" id="address" name="address" datatype="*"
						nullmsg="不能为空">
				</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">联系电话：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<input type="text" class="input-text Wdate"
						onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
						value="" placeholder="" id="begin_time"
						name="begin_time" datatype="*" nullmsg="不能为空">
				</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">营业时间：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<input type="text" class="input-text" value=""
						placeholder="" id="address" name="address" datatype="*"
						nullmsg="不能为空">
				</div>
			</div>
	
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">优惠类型：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<span class="select-box"> <select name="cateId"
						class="select" datatype="*" nullmsg="不能为空">
							<option value="">----</option>
							
					</select>
					</span>
				</div>
			</div>
			
	
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">优惠说明：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<textarea class="input-text" placeholder="" style="height: 50px"
						id="" name="description"></textarea>
				</div>
			</div>

			<div class="info-con to-top">
				<span class="hr-info">优惠金额</span> &nbsp;&nbsp;&nbsp;&nbsp;<a
					class="btn btn-primary radius" style="margin-bottom: 5px;"
					onclick="addProduct();" href="javascript:;">添加</a>
			</div>
			<div class="row cl">
				<div class="formControls" id="productCtn">
					<input type="hidden" id="products_list" name="products_list"
						value="" />

					
					<c:if test="${empty products}">
					
						<div class="rule-con">
							优惠金额：<span class="c-red">*</span>优惠金额&nbsp;&nbsp;<input type="text"
								name="1_mkt" id="1_mkt" placeholder="优惠金额" value=""
								class="input-text" style="width: 5%" datatype="/^[\d\.]+$/"
								nullmsg="不能为空">&nbsp;元&nbsp;&nbsp; <span class="c-red">*</span>使用条件&nbsp;&nbsp;<input
								type="text" name="1_price" id="1_price" placeholder="使用条件"
								value="${product.price}" class="input-text" style="width: 5%"
								datatype="/^[\d\.]+$/" nullmsg="不能为空">&nbsp;元&nbsp;&nbsp;
								<span class="c-red">*</span>数量&nbsp;&nbsp;<input type="text"
								name="1_pdt_spec" id="1_pdt_spec" placeholder=""
								value="${product.pdt_spec}" class="input-text"
								style="width: 5%" datatype="*" nullmsg="不能为空">&nbsp;&nbsp;
								有效期至&nbsp;&nbsp;<input
								type="text" name="1_unit" id="1_unit" placeholder="有效期至"
								value="${product.unit}" class="input-text" style="width: 5%"
								datatype="*" nullmsg="不能为空"> <input type="hidden"
								name="1_productId" id="1_productId" value="0"> <a
								style="text-decoration: none" class="btn btn-primary radius"
								onClick="deleteProductForm(this);" href="javascript:;"
								title="删除">删除</a>
						</div>
						
					</c:if>
				</div>
			</div>

		
			<div class="row cl mt-20">
				<div class="col-10 col-offset-2">
					<button onClick="goods_save();" id="goods-btn"
						class="btn btn-primary radius" type="button">
						<i class="Hui-iconfont">&#xe632;</i> 保存
					</button>
					<button onClick="layer_close();" class="btn btn-default radius"
						type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
				</div>
			</div>

		</div>
	<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="lib/layer/2.1/layer.js"></script>
	<script type="text/javascript"
		src="lib/Validform/5.3.2/Validform.min.js"></script>
	<script type="text/javascript"
		src="lib/webuploader/0.1.5/webuploader.min.js"></script>
	<script type="text/javascript"
		src="lib/ueditor/1.4.3/ueditor.config.js"></script>
	<script type="text/javascript"
		src="lib/ueditor/1.4.3/ueditor.all.min.js"></script>
	<script type="text/javascript" src="lib/region/js/city-picker.data.js"></script>
	<script type="text/javascript" src="lib/region/js/city-picker.js"></script>
	<script type="text/javascript" src="lib/region/js/main.js"></script>
	<script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script>

    
<script type="text/javascript">
		var base_path = '<%=path%>';
		var rootPath  = '<%=imagePath%>';
		var productSize = ${productSize};
	</script>
</body>
</html>